<?php

namespace app\admin\model;

use think\Model;

class PriceLog extends Model
{
    public function getEventTypeAttr($value,$data)
    {
        $status = [ 1 =>'充值', 2 => '消费', '兑换'];
        return $status[$data['type']] ?? '';
    }
}
